package initialize

import (
	"context"

	. "server/model/system"
	// model "server/model/system"
	"server/plugin/plugin-tool/utils"
)

func Menu(ctx context.Context) {
	// entities := []SysBaseMenu{}
	// utils.RegisterMenus(entities...)

	entities := []SysBaseMenu{
		{MenuLevel: 0,
			Hidden: false, Path: "shop",
			Name: "shop", Component: "view/routerHolder.vue",
			Sort: 1000, Meta: Meta{Title: "商城管理", Icon: "shop"}},
		{MenuLevel: 0, Hidden: false, Path: "banner", Name: "banner", Component: "plugin/amall/view/banner/banner.vue", Sort: 1, Meta: Meta{Title: "轮播图", Icon: "picture-filled"}},
		{MenuLevel: 0, Hidden: false, Path: "category", Name: "category", Component: "plugin/amall/view/category/category.vue", Sort: 2000, Meta: Meta{Title: "商品分类", Icon: "cherry"}},
		{MenuLevel: 0, Hidden: false, Path: "good", Name: "good", Component: "plugin/amall/view/good/good.vue", Sort: 1000, Meta: Meta{Title: "商品管理", Icon: "shopping-bag"}},
		{MenuLevel: 0, Hidden: false, Path: "sku", Name: "sku", Component: "plugin/amall/view/sku/sku.vue", Sort: 0, Meta: Meta{Title: "sku-${id}", Icon: ""}},
		{MenuLevel: 0, Hidden: false, Path: "order", Name: "order", Component: "plugin/amall/view/order/order.vue", Sort: 0, Meta: Meta{Title: "订单管理", Icon: "coordinate"}},
		{MenuLevel: 0, Hidden: false, Path: "cart", Name: "cart", Component: "plugin/amall/view/cart/cart.vue", Sort: 0, Meta: Meta{Title: "购物车", Icon: ""}},
		{MenuLevel: 0, Hidden: false, Path: "comment", Name: "comment", Component: "plugin/amall/view/comment/comment.vue", Sort: 0, Meta: Meta{Title: "用户评论", Icon: "message"}},
		{MenuLevel: 0, Hidden: false, Path: "address", Name: "address", Component: "plugin/amall/view/address/address.vue", Sort: 0, Meta: Meta{Title: "收货地址", Icon: "add-location"}},
	}
	utils.RegisterMenus(entities...)
}
